﻿<Windows:AbstractRibbonDropDownButton x:Class="PefStudio.Windows.FontColorRibbonDropDownButton"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:Windows="clr-namespace:PefStudio.Windows;assembly=PefStudio.Ribbon" xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Fluent:DropDownButton.Icon>
        <Grid>
            <Image Source="..\Images\FontColor.png" Width="16" Height="16" SnapsToDevicePixels="True" RenderOptions.BitmapScalingMode="NearestNeighbor"/>
            <Rectangle VerticalAlignment ="Bottom" Height="4" Width="16" HorizontalAlignment="Center">
                <Rectangle.Fill>
                    <SolidColorBrush Color="{Binding SelectedColor, ElementName=themeColorGallery}"/>
                </Rectangle.Fill>
            </Rectangle>
        </Grid>
    </Fluent:DropDownButton.Icon>
    <Fluent:ColorGallery ThemeColorsSource="{Binding ThemeColors}" SelectedColor="Blue" Mode="ThemeColors" StandardColorGridRows="3" Columns="10" ThemeColorGridRows="5" x:Name="themeColorGallery" IsNoColorButtonVisible="True" />
</Windows:AbstractRibbonDropDownButton>